package com.yu.jay.service.Impl;

import com.yu.jay.pojo.User;
import com.yu.jay.mapper.UserMapper;
import com.yu.jay.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public Boolean addUser(User user) {
        return userMapper.addUser(user);
    }

    @Override
    public Boolean delUser(User user) {
        return userMapper.delUser(user);
    }

    @Override
    public Boolean updateUser(User user) {
        return userMapper.updateUser(user);
    }

    @Override
    public List<User> getUsers() {
        return userMapper.getUsers();
    }
}
